﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
using AffordoPlugin.Fleck;
using AffordoPlugin.Helper;

namespace AffordoPlugin
{
	public partial class AffordoService : ServiceBase
	{
		public AffordoService()
		{
			InitializeComponent();
		}

		protected override void OnStart(string[] args)
		{
			LogHelper.Info("正在启动服务.....");
			new FleckWebSocketServer().Start();
			LogHelper.Info("服务已启动.....");
		}

		protected override void OnStop()
		{
			LogHelper.Info("服务已停止.....");
		}
	}
}
